package com.api.shopapi.service.impl;


import com.api.shopapi.entity.AskAnswerRecordSiteItem;
import com.api.shopapi.mapper.AskAnswerRecordSiteItemMapper;
import com.api.shopapi.service.AskAnswerRecordSiteItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AskAnswerRecordSiteItemServiceImplOne")
public class AskAnswerRecordSiteItemServiceImpl implements AskAnswerRecordSiteItemService {

    @Autowired
    private AskAnswerRecordSiteItemMapper askAnswerSiteItemMapper;

    @Override
    public
    int insert(AskAnswerRecordSiteItem askAnswerSiteItem){
        return askAnswerSiteItemMapper.insert(askAnswerSiteItem);
    }


    @Override
    public
    int delete(String askAnswerSiteItemCode){
        return askAnswerSiteItemMapper.delete(askAnswerSiteItemCode);
    }


    @Override
    public AskAnswerRecordSiteItem getByAskAnswerRecordSiteItemCode(String askAnswerRecordSiteItemCode){
        return askAnswerSiteItemMapper.getByAskAnswerRecordSiteItemCode(askAnswerRecordSiteItemCode);
    }


    @Override
    public
    List<AskAnswerRecordSiteItem> listByAskAnswerRecordSiteCode(String askAnswerRecordSiteCode){
        return askAnswerSiteItemMapper.listByAskAnswerRecordSiteCode(askAnswerRecordSiteCode);
    }


}
